package com.sgzn.sgpay.service.converter;

import com.sgzn.sgpay.persistence.domain.TSubMchShop;

import java.util.ArrayList;
import java.util.List;

/**
 * 子商户门店相关请求转换器
 * @author zhongzhongyong
 * @version Id: SubMchShopReqConverter.java, v 0.1 2018/5/30 23:37 zhongzhongyong Exp $$
 */
public class SubMchShopReqConverter {

    /**
     * 获取批量新增子商户门店关联请求
     * @param mchId
     * @param shopIds
     * @return
     */
    public static List<TSubMchShop> getBatchInsertMchPrivList(String mchId, String[] shopIds){
        List<TSubMchShop> resultList = new ArrayList<>();
        for(String shopId : shopIds){
            TSubMchShop vo = new TSubMchShop();
            vo.setMchId(mchId);
            vo.setShopId(shopId);
            resultList.add(vo);
        }
        return resultList;
    }
}
